package com.black.cat.seed.entity;


import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;
import javax.validation.constraints.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 角色表
 *
 * @author blackcat
 * @since 2020-07-21
 */
@Data
@TableName("sec_role")
@ApiModel(description = "角色表")
public class Role implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @NotNull()
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "角色名")
    @NotBlank
    private String name;

    @ApiModelProperty(value = "描述")
    private String description;

    @ApiModelProperty(value = "创建时间")
    @TableField(
            fill = FieldFill.INSERT
    )
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(
            fill = FieldFill.INSERT_UPDATE
    )
    private Date updateTime;

}
